<?php
/**
* Template designed by 12leaves.com
* 12leaves.com - Free ecommerce templates and design services
*
 * Page Template
 *
 * Main index page<br />
 * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br />
 * Centerboxes are called as necessary
 *
 * @package templateSystem
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_index_default.php 18 2013-03-05 14:16:23Z wxfans@gmail.com $
 */
?>
<?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
<?php
/**
 * get the Define Main Page Text
 */
?>
<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>
<?php } ?>

<!-- index category -->
<?php 
/**
 * display the Special Products Center Box
 */

require($template->get_template_dir('tpl_modules_index_categories.php',
		DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_index_categories.php');
 ?>
<!-- index category end -->
<!-- index tab -->
<div id="hometab">
<ul class="tab">
<li class="tab-a"><a><?php echo ('New Arrivals') ?></a></li>
<li class="tab-b"><a><?php echo ('Featured Products') ?></a></li>
<li class="tab-c"><a><?php echo ('Special Products') ?></a></li>
</ul>
<div class="tabmain">
<div><?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?></div>
<div><?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?></div>
<div><?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?></div>
</div>
</div>
<script type="text/javascript">// <![CDATA[
$(document).ready(function(){
       $( '#hometab' ).cutover();
});
// ]]></script>
<!-- end index tab -->

<?php if ($this_is_home_page) { ?>



<!--bof-banner #5 display -->
<?php
  if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerFive" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?>
<!--bof- banner #6 display -->
<?php
  if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
    if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
    }
  }
?>

<?php }?>
